smarty switch case

70

{* 
	There is no switch in Smarty 
	Use if-statement, plugin or php instead
*}

{if $case1_as_condition}
   Case 1
{elseif $case2_as_condition}
   Case 2, etc
{else}
   Default
{/if}

Comments

Submit
0 Comments